package com.mlh.springboot.servlet;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * @author 缪林辉
 * @date 2024/3/3 20:51
 * @DESCRIPTION
 */
//@WebListener
@Slf4j
public class MyListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        log.info("Listener_ contextInitialized() 项目初始化 OK~ ");
    }
    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        log.info("Listener_ contextDestroyed() 项目销毁 ");
    }
}
